<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class DingtalkToken extends Model
{
    use HasFactory;
    protected $table = 'dingtalk_token';
    protected $guarded = [];

    public function isOverTime()
    {
        return time() - strtotime($this->updated_at) < $this->time;
    }
    
}
